package IntegerTest;

class IntegerCacheTest {
    
    public static void main(String[] args) {
           
        Integer a = 1000;
 
        Integer b = 1000;
            
        System.out.println(a == b);//true
 
        Integer c = 1001;
 
        Integer d = 1001;
            
        System.out.println(c == d);//false
    }
}